package com.mbc.rmt.entities;

import java.io.Serializable;
import java.util.List;

import com.mbc.common.entities.Currency;

@SuppressWarnings("serial")
public class AllBranchOpening implements Serializable {
	
	private long allBranchOpeningId;
	private long branchId;
	private long userId;
	private long currencyId;
	private long currencyRateId;
	
	private String branchCode;
	private String branchName;
	private String currencyCode;
	private String currencyRateCode;
	
	private double rate;
	private double sourceReceivableAmt;
	private double sourcePayableAmt;
	private double homeReceivableAmt;
	private double homePayableAmt;
	private List<AllBranchOpening> allBranchOpeningList;
	private String rateOperator;
	private long defaultBranchId;
	private List<Currency> currencylist;
	
	public long getAllBranchOpeningId() {
		return allBranchOpeningId;
	}
	public void setAllBranchOpeningId(long allBranchOpeningId) {
		this.allBranchOpeningId = allBranchOpeningId;
	}
	public long getBranchId() {
		return branchId;
	}
	public void setBranchId(long branchId) {
		this.branchId = branchId;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public long getCurrencyId() {
		return currencyId;
	}
	public void setCurrencyId(long currencyId) {
		this.currencyId = currencyId;
	}
	public long getCurrencyRateId() {
		return currencyRateId;
	}
	public void setCurrencyRateId(long currencyRateId) {
		this.currencyRateId = currencyRateId;
	}
	public String getBranchCode() {
		return branchCode;
	}
	public void setBranchCode(String branchCode) {
		this.branchCode = branchCode;
	}
	public String getBranchName() {
		return branchName;
	}
	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public void setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
	}
	public String getCurrencyRateCode() {
		return currencyRateCode;
	}
	public void setCurrencyRateCode(String currencyRateCode) {
		this.currencyRateCode = currencyRateCode;
	}
	public double getRate() {
		return rate;
	}
	public void setRate(double rate) {
		this.rate = rate;
	}
	public double getSourceReceivableAmt() {
		return sourceReceivableAmt;
	}
	public void setSourceReceivableAmt(double sourceReceivableAmt) {
		this.sourceReceivableAmt = sourceReceivableAmt;
	}
	public double getSourcePayableAmt() {
		return sourcePayableAmt;
	}
	public void setSourcePayableAmt(double sourcePayableAmt) {
		this.sourcePayableAmt = sourcePayableAmt;
	}
	public double getHomeReceivableAmt() {
		return homeReceivableAmt;
	}
	public void setHomeReceivableAmt(double homeReceivableAmt) {
		this.homeReceivableAmt = homeReceivableAmt;
	}
	public double getHomePayableAmt() {
		return homePayableAmt;
	}
	public void setHomePayableAmt(double homePayableAmt) {
		this.homePayableAmt = homePayableAmt;
	}

	public AllBranchOpening(){
		clearProperties();
	}
	
	public void clearProperties() {
		allBranchOpeningId = 0;
		branchId =0;
		userId = 0;
		currencyId = 0;
		currencyRateId = 0;
		
		branchCode = "";
		branchName = "";
		currencyCode = "";
		currencyRateCode = "";
		
		rate = 0;
		sourceReceivableAmt = 0;
		sourcePayableAmt = 0;
		homeReceivableAmt = 0;
		homePayableAmt = 0;
		rateOperator="";
		defaultBranchId=0;
		
	}
	public List<AllBranchOpening> getAllBranchOpeningList() {
		return allBranchOpeningList;
	}
	public void setAllBranchOpeningList(List<AllBranchOpening> allBranchOpeningList) {
		this.allBranchOpeningList = allBranchOpeningList;
	}
	public String getRateOperator() {
		return rateOperator;
	}
	public void setRateOperator(String rateOperator) {
		this.rateOperator = rateOperator;
	}
	public long getDefaultBranchId() {
		return defaultBranchId;
	}
	public void setDefaultBranchId(long defaultBranchId) {
		this.defaultBranchId = defaultBranchId;
	}
	public List<Currency> getCurrencylist() {
		return currencylist;
	}
	public void setCurrencylist(List<Currency> currencylist) {
		this.currencylist = currencylist;
	}
}
